package com.mawendaxiong.bloggateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.ConfigurableApplicationContext;

@EnableZuulProxy
@SpringBootApplication
public class BloggatewayApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(BloggatewayApplication.class, args);
        String path = context.getEnvironment().getProperty("zuul.routes.blogProvider.path");
        String serviceId = context.getEnvironment().getProperty("zuul.routes.blogProvider.service-id");
        System.out.println(path);
        System.out.println(serviceId);

    }

}
